package com.dwh.mq.spring;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class Consumer {
	@JmsListener(destination = "spring-queue")
	public void receiveMsg(String msg) {
		System.out.println("Consumer1接收到的消息：" + msg);
	}
}
